package com.xian.im.modules.avchat.storage.handler;

import com.xian.im.common.proto.MsgRequest;
import com.xian.im.modules.avchat.storage.MessageStorage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @program: xian-code
 * @description:
 * @author: liru.xian
 * @create: 2021-01-21 15:47
 **/
@Slf4j
@Service
public class ESMessageStorage implements MessageStorage {

    public static final String TYPE= "es";
    /**
     * @param message
     * @return
     */
    @Override
    public Boolean save(MsgRequest message) {
        log.debug("消息存储第一版本不进行消息处理");
        return Boolean.TRUE;
    }

    /**
     * @param message
     * @return
     */
    @Override
    public Boolean del(MsgRequest message) {
        log.debug("消息存储第一版本不进行消息处理");
        return Boolean.TRUE;
    }

    /**
     * 当前存储类型是否匹配
     *
     * @return
     */
    @Override
    public String match() {
        return TYPE;
    }


}
